package com.aps.system.service.impl;

import com.aps.common.core.domain.AjaxResult;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import com.aps.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.aps.system.mapper.VexpDevelopsampleClothingProcessnewAMapper;
import com.aps.system.domain.VexpDevelopsampleClothingProcessnewA;
import com.aps.system.service.IVexpDevelopsampleClothingProcessnewAService;

import javax.annotation.Resource;

/**
 * VIEWService业务层处理
 *
 * @author aps
 * @date 2024-07-15
 */
@Service
public class VexpDevelopsampleClothingProcessnewAServiceImpl extends ServiceImpl<VexpDevelopsampleClothingProcessnewAMapper, VexpDevelopsampleClothingProcessnewA> implements IVexpDevelopsampleClothingProcessnewAService {

    @Resource
    private VexpDevelopsampleClothingProcessnewAMapper vexpDevelopsampleClothingProcessnewAMapper;

    /**
     * 查询VIEW
     *
     * @param YWP VIEW主键
     * @return VIEW
     */
    @Override
    public VexpDevelopsampleClothingProcessnewA selectVexpDevelopsampleClothingProcessnewAByYWP(String YWP) {
        return vexpDevelopsampleClothingProcessnewAMapper.selectVexpDevelopsampleClothingProcessnewAByYWP(YWP);
    }

    /**
     * 查询VIEW列表
     *
     * @param vexpDevelopsampleClothingProcessnewA VIEW
     * @return VIEW
     */
    @Override
    public List<VexpDevelopsampleClothingProcessnewA> selectVexpDevelopsampleClothingProcessnewAList(VexpDevelopsampleClothingProcessnewA vexpDevelopsampleClothingProcessnewA) {
        return vexpDevelopsampleClothingProcessnewAMapper.selectVexpDevelopsampleClothingProcessnewAList(vexpDevelopsampleClothingProcessnewA);
    }

    /**
     * 新增VIEW
     *
     * @param vexpDevelopsampleClothingProcessnewA VIEW
     * @return 结果
     */
    @Override
    public int insertVexpDevelopsampleClothingProcessnewA(VexpDevelopsampleClothingProcessnewA vexpDevelopsampleClothingProcessnewA) {
        vexpDevelopsampleClothingProcessnewA.setCreateTime(DateUtils.getNowDate());
        return vexpDevelopsampleClothingProcessnewAMapper.insertVexpDevelopsampleClothingProcessnewA(vexpDevelopsampleClothingProcessnewA);
    }

    /**
     * 修改VIEW
     *
     * @param vexpDevelopsampleClothingProcessnewA VIEW
     * @return 结果
     */
    @Override
    public int updateVexpDevelopsampleClothingProcessnewA(VexpDevelopsampleClothingProcessnewA vexpDevelopsampleClothingProcessnewA) {
        return vexpDevelopsampleClothingProcessnewAMapper.updateVexpDevelopsampleClothingProcessnewA(vexpDevelopsampleClothingProcessnewA);
    }

    /**
     * 批量删除VIEW
     *
     * @param YWPs 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteVexpDevelopsampleClothingProcessnewAByYWPs(String[] YWPs) {
        return vexpDevelopsampleClothingProcessnewAMapper.deleteVexpDevelopsampleClothingProcessnewAByYWPs(YWPs);
    }

    /**
     * 删除VIEW信息
     *
     * @param YWP VIEW主键
     * @return 结果
     */
    @Override
    public int deleteVexpDevelopsampleClothingProcessnewAByYWP(String YWP) {
        return vexpDevelopsampleClothingProcessnewAMapper.deleteVexpDevelopsampleClothingProcessnewAByYWP(YWP);
    }

    @Override
    public List<VexpDevelopsampleClothingProcessnewA> getVexpDevelopsampleClothingProcessnewA(String type) {
        return vexpDevelopsampleClothingProcessnewAMapper.getVexpDevelopsampleClothingProcessnewA(type);
    }


}
